package com.ferryc.tccfegin;

import com.ferryc.fegin.hystrix.PayServiceFallbackFactory;
import com.ferryc.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Ferry Chen on 2019/11/26.
 */
@FeignClient(name = "account-service",path = "/tcc")
public interface PayTccFeignClient {

    @PostMapping("/consume")
    public Result consume(@RequestParam(value = "userId") String userId,
                          @RequestParam(value = "money") Double money);
}
